
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>店铺Banner设置</title>
</head>
<body>


<div class="navigation">
    <div class="crumbs ">
        <i class="tm-iconfont icon-info"></i>
        <a href="#">卖家中心</a><span>&gt;</span><a href="#200">店铺管理</a><span>&gt;</span>店铺Banner设置
    </div>
    <div class="help">
        <a href="#" target="_blank">卖家交易学习专区</a>
    </div>
</div>
<c:choose>
<c:when test="${shopId==1}">
    没有店铺Banner
</c:when>
<c:otherwise>
<div class="c oh">
    <div class="p-lr20">
        <a href="${ctx}/add/shop_banner" class="i_btn u2 p-lr50">添加店铺Banner</a>
    </div>

    <div class="u_table_list table002 m-t20 line-all">

        <table>
            <colgroup>
                <col width="20%">
                <col width="40%">
                <col width="20%">
                <col width="20%">
            </colgroup>
            <tr>
                <th>Banner</th>
                <th>链接地址</th>
                <th>优先等级</th>
                <th>操作</th>
            </tr>
            <c:forEach var="itme" items="${wxShopBanner}">
            <tr>
                <td class="tal">
                    <img style="width:140px; height:60px;" src="${itme.image}" />
                </td>
                <td class="not_lb">${itme.link}</td>
                <td class="not_lb">${itme.orderNum}</td>
                <td class="not_lb"><a class="m-r10" href="${ctx}/edit/shop_banner?id=${itme.bannerId}">编辑</a><a href="${ctx}/delete/shop_banner?id=${itme.bannerId}">删除</a></td>
            </tr>
            </c:forEach>
        </table>

    </div>
</div>
</c:otherwise>
</c:choose>
</body>